package com.sc.nft.entity.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@NoArgsConstructor
public class MyConsignmentListVO {

    @ApiModelProperty("寄售id")
    private Long secondCollectionId;

    @ApiModelProperty("藏品Id")
    private Long collectionId;

    @ApiModelProperty("用户藏品Id")
    private Long userCollectionId;

    @ApiModelProperty("一级标题")
    private String firstTitle;

    @ApiModelProperty("序号")
    private String numbering;

    @ApiModelProperty("寄售价格")
    private String salesPrice;

    @ApiModelProperty("是否锁单中")
    private Boolean isLockOrder;

    public void setSalesPrice(BigDecimal salesPrice) {
        this.salesPrice = salesPrice.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
    }
}
